
import request from '@/api/request.js'
import request1 from '@/api/request1.js'

export function getAction(url, data) {
	return request({
		url: url, // config.apiUrl + url 拼接，完整路径为：https://api.apiopen.top/sentences
		method: 'get',
		data: data
	})
}
export function getActionUrl(url, data) {
	return request1({
		url: url, // config.apiUrl + url 拼接，完整路径为：https://api.apiopen.top/sentences
		method: 'get',
		data: data
	})
}

export function postAction(url, data) {
	return request({
		url: url, // config.apiUrl + url 拼接，完整路径为：https://api.apiopen.top/sentences
		method: 'post',
		data: data,
	})
}
export function postActionUrl(url, data) {
	return request1({
		url: url, // config.apiUrl + url 拼接，完整路径为：https://api.apiopen.top/sentences
		method: 'post',
		data: data,
	})
}
export function putAction(url, data) {
	return request({
		url: url, // config.apiUrl + url 拼接，完整路径为：https://api.apiopen.top/sentences
		method: 'put',
		data: data,
	})
}
export function putActionUrl(url, data) {
	return request1({
		url: url, // config.apiUrl + url 拼接，完整路径为：https://api.apiopen.top/sentences
		method: 'put',
		data: data,
	})
}

export function delAction(url, data) {
	return request({
		url: url, // config.apiUrl + url 拼接，完整路径为：https://api.apiopen.top/sentences
		method: 'delete',
		data: data,
	})
}

